package com.example.memberships.api

import com.example.net.HttpsRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class MemberWorkModel {
    @Provides
    @Singleton
    fun provideHouseworkApi(@HttpsRetrofitAnnotation retrofit: Retrofit): MemberApiService {
        return  retrofit.create(MemberApiService::class.java)
    }
}